package cn.cttic.base.api.domain.vo;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import cn.cttic.common.translation.annotation.Translation;
import cn.cttic.common.translation.constant.TransConstant;
import cn.cttic.base.api.domain.BasePerson;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 人员信息视图对象 base_person
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BasePerson.class)
public class BasePersonVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private String id;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String realName;

    /**
     * 身份证号码
     */
    @ExcelProperty(value = "身份证号码")
    private String idCardNo;

    /**
     * 邮箱
     */
    @ExcelProperty(value = "邮箱")
    private String email;

    /**
     * 头像
     */
    @ExcelProperty(value = "头像")
    private String avatar;

    /**
     * 头像Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "avatar")
    private String avatarUrl;
    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phone;

    /**
     * 身份证正面
     */
    @ExcelProperty(value = "身份证正面")
    private String front;

    /**
     * 身份证正面Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "front")
    private String frontUrl;
    /**
     * 身份证反面
     */
    @ExcelProperty(value = "身份证反面")
    private String back;

    /**
     * 身份证反面Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "back")
    private String backUrl;
    /**
     * 所属企业
     */
    @ExcelProperty(value = "所属企业")
    private String companyId;

    private String companyName;

    private String channelName;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别")
    private Integer gender;

    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, mapper = "gender", other = "sys_user_sex")
    private String genderName;

    /**
     * 生日
     */
    @ExcelProperty(value = "生日")
    private LocalDate birthday;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 销售人员账号
     */
    private Integer hasSaleUserAccount;

    /**
     * 安装人员账号
     */
    private Integer hasInstallUserAccount;

    /**
     * 认证状态
     */
    @ExcelProperty(value = "认证状态")
    private Integer status;

    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, mapper = "status", other = "dict_person_verify_status")
    private String statusName;


    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
